//
//  MyToolsClass.h
//  myyouling
//
//  Created by hunuo on 15/9/24.
//  Copyright (c) 2015年 hunuo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface MyToolsClass : NSObject
// 创建按钮
+ (UIButton *)createBtnWithFrame:(CGRect)rect title:(NSString *)title image:(UIImage *)image target:(id)target action:(SEL)action;
// 创建UILabel
+ (UILabel *)createLbWithFrame:(CGRect)rect title:(NSString *)title aliment:(NSTextAlignment)aliment color:(UIColor *)color size:(CGFloat)size;
// 计算完成显示指定文字的大小
+ (CGSize)caculateText:(NSString *)str fontSize:(CGFloat)size maxSize:(CGSize)maxSize;
@end
